from datetime import datetime
from decimal import Decimal


def utc_to_local_datetime(utc):
    seconds = Decimal(datetime.now().timestamp())
    seconds = seconds - Decimal(datetime.utcnow().timestamp())
    seconds = Decimal(utc.timestamp()) + seconds
    return datetime.fromtimestamp(float(seconds))
